"""
贪婪法
"""
"""物品"""
def __init__(self, name, price, weight):
    self.name = name
    self.price = price
    self.weight = weight
@property
def value(self):
    """价格重量比"""
    return self.price / self.weight